- 
                Notifications
    You must be signed in to change notification settings 
- Fork 17
IBX-9446: [BO] Fatal error after non-translatable field added to Content Type #533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBX-9446: [BO] Fatal error after non-translatable field added to Content Type #533
Conversation
| 
 | 
8030caf    to
    94091aa      
    Compare
  
    | @vidarl Could you please resolve issues reported by PHPStan ? | 
| 
 | 
64969ce    to
    0acba30      
    Compare
  
    | Removed "draft" state for this PR now, as the test case is finally able to reproduce the problem and only success when fix is applied. However, I cannot tell for sure if this is the correct fix for the problem as the topic is quite heavy IMO | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the test case. It was important and necessary, so I can spend less time debugging the actual issue.
This looks like either a side-effect of performance fix ezsystems/ezplatform-kernel#409 or indeed, as you've mentioned, ezsystems/ezplatform-kernel#397 and for me the fix is fine!
Remarks regarding the test itself:
| @alongosz : Ref my findings in https://issues.ibexa.co/browse/IBX-9446?focusedId=291445&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-291445, I wonder if we should always also put mainLanguage as first element in  ie As far as I know, there are no edge cases where  | 
| 
 @vidarl I don't follow how this change would help you with the issue. | 
| 
 @alongosz : For this specific issue (fatal error) it won't change anything. so guess it can be treated as a separate but related issue. But let me explain some odd behavior. If you run this PR's test as-is, and then check the DB you'll see the following: Then, in the test replace all  The reason is this  thing with order of  I guess admin-ui behavior is the correct one, and in that case my proposal for ordering  But there is something fishy here | 
| @vidarl there might be, because reordering the language like that should have no effect to API. I have a feeling this would produce some unrelated edge cases, so I'd like to avoid it if not necessary. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my side the solution as-is is okay.
0a6ca47    to
    25724c8      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA Approved on Ibexa Commerce 4.6.25-dev.
25724c8    to
    84310f4      
    Compare
  
    | 
 | 



Description:
This is a fix for a regression caused by the "virtual fields" introduced in 98b7b50
It might be an idea to read https://issues.ibexa.co/browse/IBX-9446?focusedId=291445&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-291445
For QA:
See ticket for step-by-step on how to reproduce the problem